package com.atguigu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户账户明细
 * </p>
 *
 * @author Joe
 * @since 2024-12-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_account_detail")
public class UserAccountDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 交易标题
     */
    private String title;

    /**
     * 交易类型：1201-充值 1202-锁定 1203-解锁 1204-消费
     */
    private String tradeType;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String isDeleted;
}
